
import requests
from fake_useragent import UserAgent
import random
# ua = UserAgent()
#
# ua = ua.random
# headers = {
#     'User-Agent': ua
# }
# res = requests.get('http://127.0.0.1:8000/cookie/',headers=headers)
# print(res.text)

headers = {
    # 'User-Agent': ua
    "referer": "http://127.0.0.1:8000"
}
res = requests.get('http://127.0.0.1:8000/referer/',headers=headers)
print(res.text)











